package com.lwt.monstermall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lwt.monstermall.common.to.mq.SeckillOrderTo;
import com.lwt.monstermall.common.utils.PageUtils;
import com.lwt.monstermall.order.entity.OrderEntity;
import com.lwt.monstermall.order.vo.*;

import java.util.Map;

/**
 * 订单
 *
 * @author daguai
 * @email 962527441@qq.com
 * @date 2021-12-29 21:14:38
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 订单确认返回的数据
     * @return
     */
    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity entity);

    PayVo getOrderPay(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo asyncVo);

    void createSeckillOrder(SeckillOrderTo orderTo);
}

